package com.brillilab.domain.vo.method;

import java.io.Serializable;
import java.util.Date;

import com.brillilab.domain.enums.method.RecommendAuditStateEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * 推荐方法审核信息
 * @author lj
 *
 */
@Data
public class MethodAuditInfoVo  implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 审核ID
	 */
	private Long id;
	/**
	 * 方法ID
	 */
	private Long methodId;

	/**
	 * 推荐人labMemberId
	 */
	private Long recommenderId;
	/**
	 * 推荐实验室
	 */
	private String labName;
	/**
	 * 推荐人姓名
	 */
	private String recommenderName;
	/**
	 * 推荐时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", locale = "zh" , timezone="GMT+8")
	private Date recommendTime;
	/**
	 * 推荐理由
	 */
	private String reason;
	/**
	 * 审核状态0-等待审核,1-已推荐,2-审核未通过,3-取消推荐
	 */
	private Integer state;
	/**
	 * 审核状态名称
	 */
	private String stateName;
	/**
	 * 审核时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", locale = "zh" , timezone="GMT+8")
	private Date auditTime;
	/**
	 * 审核人labMemberId
	 */
	private Long auditorId;
	/**
	 * 审核人姓名
	 */
	private String auditorName;
	/**
	 * 审核意见
	 */
	private String auditOpinion;
	
	public String getStateName() {
		stateName = RecommendAuditStateEnum.getName(state);
		return stateName;
	}
	
}
